#include "Control_MenuClose.h"

#include "Control_Menu.h"
#include "Host.h"

using namespace gui;

Control_MenuClose::Control_MenuClose(ColorRGBA<unsigned char> NewBackColor, Vec<2, float> NewPos, Vec<2, float> NewSize, Control_Menu* NewParentMenu, Host& NewParentHost) :
Control_Visible(NewBackColor, NewPos, NewSize, NewParentMenu, NewParentHost)
{
}

void Control_MenuClose::MouseDownLeft()
{
	//ParentHost.CloseMenu(ParentMenu->Name);
	HostCloseParentMenu();
}

void Control_MenuClose::UpdateVerticesFix(RendererComponent& Renderer)
{
	Control_Visible::UpdateVerticesFix(Renderer);
}

Control_MenuClose::~Control_MenuClose(void)
{
}

